/*
 * @lc app=leetcode.cn id=2185 lang=typescript
 *
 * [2185] 统计包含给定前缀的字符串
 */

// @lc code=start
function prefixCount(words: string[], pref: string): number {
    return words.filter((i) => {
        return i.startsWith(pref);
    }).length;
}
// @lc code=end
